<?php if (!empty($user)) { ?>
	<?php if(isset($rightBannerOfferPic) && $rightBannerOfferPic != ''): ?>
		<?php 
			$record = new Record($user['id']);
			$record->addBannerOfferImpressionRecording($rightBannerId);
		?>
		<a href="<?php echo $rightBannerOfferLink; ?>" target="_blank"><img width="120" height="600" src="<?php echo $rightBannerOfferPic; ?>" /></a>
	<?php else: ?>
		<a href="https://ibid2save.oneffect.us/affiliate/goto_offer/8/21/54/3/5" target="_blank" ><img src="http://image.cgb.s3.amazonaws.com/ad/120x600/120x600.gif" width="120" height="600" border="0" /></a>
	<?php endif; ?>
	
	<!-- <iframe src="http://iframe.sponsorpay.com/widgets/sp-banner.html?appid=4166&uid=[[USER_ID]]&shape=skyscraper&skin=default" frameborder="0" width="120" height="600" scrolling="no"></iframe>-->
	<!--
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="600" id="120x600_ibid2save" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="120x600_ibid2save.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://image.cgb.s3.amazonaws.com/ad/120x600/120x600_ibid2save.swf" quality="high" bgcolor="#ffffff" width="120" height="600" name="120x600_ibid2save" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
	-->
<?php 
}
else
{
	echo $site['ad_right'];
} ?>
